//
//  ViewController.m
//  Test
//
//  Created by lanou3g on 15/11/17.
//  Copyright © 2015年 Shuai Cui. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // MK_
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    
    view.backgroundColor = [UIColor redColor];
    
    [self.view addSubview:view];
    
    
    
    // ZLG
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    [self.view addSubview:imageView];
    imageView.backgroundColor = [UIColor colorWithRed:1.000 green:0.198 blue:0.174 alpha:1.000];
    
    
    //XWY
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    button.frame = CGRectMake(100, 400, 100, 100);
    button.backgroundColor = [UIColor redColor];
    [self.view addSubview:button];
        
}


@end
